Skip to content

chore(deps): bump file_picker from 10.3.10 to 11.0.2#52

Merged
anilcancakir merged 1 commit intomasterfrom
chore/bump-file-picker-11
Apr 7, 2026
Merged

chore(deps): bump file_picker from 10.3.10 to 11.0.2#52
anilcancakir merged 1 commit intomasterfrom
chore/bump-file-picker-11

Conversation

@anilcancakir
Copy link
Copy Markdown
Contributor

Summary

  • Upgrade file_picker from ^10.3.10 to ^11.0.2 (major version bump)
  • Migrate Pick facade from instance-based API (FilePicker.platform.method()) to v11 static API (FilePicker.method())
  • Includes Android CWE-22 path traversal security fix and WASM web support

Breaking Change

magic.dart re-exports package:file_picker/file_picker.dart. Consumers using FilePicker.platform directly (bypassing the Pick facade) will get a compile error. The Pick facade API is unchanged.

Changes

  • pubspec.yamlfile_picker: ^10.3.10^11.0.2
  • lib/src/facades/pick.dart — Remove .platform from 4 call sites (lines 297, 320, 343, 366)
  • CHANGELOG.md — Entry under [Unreleased]

Test plan

  • flutter test — 914 tests passed
  • dart analyze — zero warnings
  • dart format . --set-exit-if-changed — zero changes
  • Plan verifier: APPROVE
  • Code review: APPROVED

Supersedes #44 (Dependabot PR — only bumped pubspec, did not migrate breaking API).

Migrate to v11 static API — FilePicker.platform.method() replaced with
FilePicker.method() across Pick facade. Includes Android CWE-22 path
traversal security fix and WASM web support.

BREAKING CHANGE: magic.dart re-exports file_picker — consumers using
FilePicker.platform directly will get a compile error.
Copilot AI review requested due to automatic review settings April 7, 2026 19:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the file_picker dependency to v11 and migrates the internal Pick facade to the new static FilePicker.* API, aligning the framework with upstream breaking changes and security/WASM improvements.

Changes:

  • Bumped file_picker from ^10.3.10 to ^11.0.2.
  • Updated Pick facade call sites to use FilePicker.pickFiles/getDirectoryPath/saveFile (static API).
  • Refreshed the example app lockfile and added an Unreleased changelog entry for the dependency upgrade.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
pubspec.yaml Upgrades file_picker to ^11.0.2.
lib/src/facades/pick.dart Migrates facade internals from FilePicker.platform.* to v11 static API.
example/pubspec.lock Updates resolved versions/hashes after dependency bump.
CHANGELOG.md Documents the dependency upgrade under [Unreleased].

@sentry
Copy link
Copy Markdown

sentry bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/src/facades/pick.dart 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@anilcancakir anilcancakir merged commit 158dd19 into master Apr 7, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants